package com.tensquare.friend.client;
/*
 *ClassName:LabelClient
 *Description:调用基础微服务的标签接口
 *@author:可爱的大鸭子
 */

import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Component
@FeignClient("tensquare-base")
public interface LabelClient {
    @RequestMapping(value = "/label/myLabels/{me}",method = RequestMethod.GET)
    public Result getMyLabels(@PathVariable("me") String me);
    @RequestMapping(value="/label/{id}",method = RequestMethod.GET)   //value指定url
    public Result findById(@PathVariable("id") String id);
}
